package com.five.community.service;

import com.five.community.bean.Building;
import com.five.community.bean.vo.BuildingVo;

import java.util.List;

public interface BuildingService {
    List<BuildingVo> selectAllByName(Integer pageNum, Integer pageSize, String name) throws Exception;


    List<BuildingVo> selectAll() throws Exception;

    List<BuildingVo> selectAllBuildings(Integer pageNum, Integer pageSize) throws Exception;

    void insert(Building building) throws Exception;

    void deleteById(long id) throws Exception;

    List<BuildingVo> selectByName(String name) throws Exception;

    Building selectById(long id) throws Exception;

    void update(Building building) throws Exception;
}
